Skip to contentSkip to conversation

#yocto

DISCUSSION Monsees, Steven C (US) 3 participants 6 messages Oct 29, 2020 – Nov 2, 2020

lore
Share & tools
lore
#0 lore raw

I am currently looking at porting from "rocko" to "zeus"...

Under your migration pages, I saw that in the project 2.7 release the following change occurred to BitBake:

"Bitbake now checks BBFILE_COLLECTIONS<https://docs.yoctoproject.org/ref-manual/ref-variables.html#term-BBFILE_COLLECTIONS> for duplicate entries and triggers an error if any are found."

Does this imply that Yocto/BitBake would now throw a "duplicate BBFILE_COLLECTIONS", if say prior to 2.7 one had 2 layers such as:

(1) ./workspace_1/poky/../meta-intel

(2) ./workspace_1/poky/../meta-1/meta-2/meta-intel

Where #1 was the actual meta-intel recipe, and #2 was for modification/configuration of #1 ?

Thanks,
Steve

#1 lore raw

Maybe the better question is, Does the BBFILE_COLLECTIONS name add now have to be unique ?

In this scenario the  BBFILE_COLLECTIONS name  is currently set to += "intel" for both the respective layer.conf files...

Currently under the "rocko" release this does not cause an isuue.

Thanks,
Steve

#2 lore raw

Hey,
Yes it got changed to make it clear that it has to be unique. You will get slot of fun when updating to dunfell. Also each recipes will have its own sysroot.
Cheers
On Oct 29, 2020 20:37, "Monsees, Steven C (US) via lists.yoctoproject.org" <[email protected]> wrote:
Maybe the better question is, Does the BBFILE_COLLECTIONS name add now have to be unique ?

In this scenario the  BBFILE_COLLECTIONS name  is currently set to += "intel" for both the respective layer.conf files...

Currently under the "rocko" release this does not cause an isuue.

Thanks,
Steve

#3 lore raw

I am not sure I am following ...

#1 is the actual package being built, #2 is the mods to the recipes for the image I am building...

(1)./workspace_1/poky/../meta-intel

(2)./workspace_1/poky/../meta-1/meta-2/meta-intel
These directories share the same name, but the local.conf for #2 requires a unique BBFILE_COLLECTIONS name now ?

If I change the BBFILE_COLLECTIONS name to be unique,  I see the following error:

--- Starting bitbake server pid 12022 at 2020-11-02 07:19:06.133802 ---
ERROR: Unable to parse Var <AVAILABLE_LICENSES[:=]>
Traceback (most recent call last):
File "Var <AVAILABLE_LICENSES[:=]>", line 1, in <module>
File "/disk0/scratch/smonsees/yocto/workspace_3/poky/meta/classes/license.bbclass", line 275, in available_licenses(d=<bb.data_smart.DataSmart object at 0x7fc921cbdda0>):
for lic_dir in lic_dirs:

Quoted 1 line

        licenses += os.listdir(lic_dir)

bb.data_smart.ExpansionError: Failure expanding variable AVAILABLE_LICENSES[:=], expression was ${@' '.join(available_licenses(d))} which triggered exception FileNotFoundError: [Errno 2] No such file or directory: '/disk0/scratch/smonsees/yocto/workspace_3/poky/../meta-bae/meta-limws/meta-intel/custom-licenses'

#4 lore raw

your 2nd meta-intel probably still has:
LICENSE_PATH += "${LAYERDIR}/custom-licenses"
in layer.conf without having this directory included in the layer?

Quoted 39 lines · Steven C (US) via lists.yoctoproject.org

I am not sure I am following ...

#1 is the actual package being built, #2 is the mods to the recipes for the image I am building...

    (1)    ./workspace_1/poky/../meta-intel

    (2)    ./workspace_1/poky/../meta-1/meta-2/meta-intel

These directories share the same name, but the local.conf for #2 requires a unique BBFILE_COLLECTIONS name now ?

If I change the BBFILE_COLLECTIONS name to be unique, I see the following error:

--- Starting bitbake server pid 12022 at 2020-11-02 07:19:06.133802 ---
ERROR: Unable to parse Var <AVAILABLE_LICENSES[:=]>
Traceback (most recent call last):
File "Var <AVAILABLE_LICENSES[:=]>", line 1, in <module>
File
"/disk0/scratch/smonsees/yocto/workspace_3/poky/meta/classes/license.bbclass", line 275, in available_licenses(d=<bb.data_smart.DataSmart object at 0x7fc921cbdda0>):
for lic_dir in lic_dirs:
> licenses += os.listdir(lic_dir)

bb.data_smart.ExpansionError: Failure expanding variable
AVAILABLE_LICENSES[:=], expression was ${@'
'.join(available_licenses(d))} which triggered exception FileNotFoundError:
[Errno 2] No such file or directory:
'/disk0/scratch/smonsees/yocto/workspace_3/poky/../meta-bae/meta-limws/meta-intel/custom-licenses'